package org.vdab.projects.tasks.client;

import org.vdab.projects.tasks.client.dal.GWTEntityManager;
import org.vdab.projects.tasks.client.gui.TaskBookSelector;
import org.vdab.projects.tasks.client.util.MessageGuard;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Tasks implements EntryPoint {
	
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		MessageGuard.Log("onModuleLoad()");
		try {
			RootPanel.get("taskBooksContainer").add(new TaskBookSelector(GWTEntityManager.get()).init());
		} catch (Exception ex) {
			MessageGuard.Log(ex.getLocalizedMessage());
		}
//		RootPanel.get("taskBooksContainer").add(new TaskBookSelector());		
	}
}
